/**
 * 参数适配器
 *
 */

function doSomeThing(obj) {
    let _adapter = {
        name:'ck',
        title: '设计模式',
        age: 24,
        size:100,
        prize:50
    }

    for(let key in _adapter){
        _adapter[key] = obj[key] || _adapter[key]
    }
    // 或者extends(_adapter, obj)
    // do things
}
